package com.shujia.wyh.day14.sellTicket1;

public class Windows1 extends Thread{
    static int tickets = 100;

    @Override
    public void run() {

        while (true){
            if(tickets>0){
                System.out.println(getName()+"窗口: 正在售卖第 "+(tickets--)+" 张票");
            }
        }
    }
}
